/*    */ package com.newcrm.config;
/*    */ 
/*    */ import org.apache.commons.configuration.Configuration;
/*    */ import org.apache.commons.configuration.ConfigurationException;
/*    */ import org.apache.commons.configuration.PropertiesConfiguration;
/*    */ 
/*    */ public class MyDBSetting
/*    */ {
/*  9 */   private static String DB_SETTING = "dbsetting.properties";
/* 10 */   private static MyDBSetting config = null;
/*    */ 
/* 12 */   public String dbJdbcUrl = null;
/* 13 */   public String user = null;
/* 14 */   public String pwd = null;
/*    */ 
/*    */   private MyDBSetting() {
/*    */     try {
/* 18 */       Configuration config = new PropertiesConfiguration(DB_SETTING);
/* 19 */       this.dbJdbcUrl = config.getString("jdbcUrl");
/* 20 */       this.user = config.getString("user");
/* 21 */       this.pwd = config.getString("pwd");
/*    */     } catch (ConfigurationException e) {
/* 23 */       this.dbJdbcUrl = null;
/*    */     }
/*    */   }
/*    */ 
/*    */   public static void init() {
/* 28 */     config = null;
/*    */   }
/*    */ 
/*    */   public static MyDBSetting getInstance() {
/* 32 */     if (config == null) {
/* 33 */       config = new MyDBSetting();
/*    */     }
/* 35 */     return config;
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.config.MyDBSetting
 * JD-Core Version:    0.6.1
 */